package com.tom.demo.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.tom.demo.common.entity.OaProcessTemplate;
import com.tom.demo.vo.OaProcessTemplateVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Admin
* @description 针对表【oa_process_template(审批模板表)】的数据库操作Mapper
* @createDate 2025-03-19 23:33:16
* @Entity generator.domain.OaProcessTemplate
*/
@Mapper
@DS("master")
public interface OaProcessTemplateMapper{

    List<OaProcessTemplateVo> list(OaProcessTemplate oaProcessTemplate);

    int insert(OaProcessTemplate oaProcessTemplate);

    int updateById(OaProcessTemplate oaProcessTemplate);

    OaProcessTemplate findById(@Param("id")String id);

    OaProcessTemplate findByProcessDefinitionKey(@Param("processDefinitionKey") String processDefinitionKey);
}




